Don't display the "noautoblock" flag when blocking an IP address since this option...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 5 Apr 2009 14:02:37 +0000 (14:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 5 Apr 2009 14:02:37 +0000 (14:02 +0000)
Thanks to Elfix on the French Wikipedia for the report.

RELEASE-NOTES
includes/specials/SpecialBlockip.php

index 3c1aca0..c132de2 100644 (file)
@@ -324,6 +324,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Fixed a PHP notice when $wgEnableSerializedMessages was set to false
 * (bug 18316) Removed superfluous name="fulltext" from Special:Search
 * (bug 18331) MediaWiki:Undelete-revision can now have wikitext
+* The "noautoblock" flag is no longer displayed in the block log when blocking
+  an IP address
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index 1c2dc67..dd7cc3f 100644 (file)
@@ -598,7 +598,8 @@ class IPBlockForm {
                        $flags[] = 'anononly';
                if( $this->BlockCreateAccount )
                        $flags[] = 'nocreate';
-               if( !$this->BlockEnableAutoblock )
+               if( !$this->BlockEnableAutoblock && !IP::isIPAddress( $this->BlockAddress ) )
+                       // Same as anononly, this is not displayed when blocking an IP address
                        $flags[] = 'noautoblock';
                if ( $this->BlockEmail )
                        $flags[] = 'noemail';